﻿using Wicresoft.SMS.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for CILHelperTest and is intended
    ///to contain all CILHelperTest Unit Tests
    ///</summary>
    [TestClass()]
    public class CILHelperTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for CILHelper Constructor
        ///</summary>
        [TestMethod()]
        public void CILHelperConstructorTest()
        {
            string _CILServer = string.Empty; // TODO: Initialize to an appropriate value
            string _ConnectString = string.Empty; // TODO: Initialize to an appropriate value
            CILHelper target = new CILHelper(_CILServer, _ConnectString);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CILHelper Constructor
        ///</summary>
        [TestMethod()]
        public void CILHelperConstructorTest1()
        {
            string _CILServer = string.Empty; // TODO: Initialize to an appropriate value
            CILHelper target = new CILHelper(_CILServer);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CILAuthenticate
        ///</summary>
        [TestMethod()]
        [DeploymentItem("SMS.Common.dll")]
        public void CILAuthenticateTest()
        {
            PrivateObject param0 = null; // TODO: Initialize to an appropriate value
            CILHelper_Accessor target = new CILHelper_Accessor(param0); // TODO: Initialize to an appropriate value
            string server = string.Empty; // TODO: Initialize to an appropriate value
            string username = string.Empty; // TODO: Initialize to an appropriate value
            string password = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.CILAuthenticate(server, username, password);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUserInfoByCIL
        ///</summary>
        [TestMethod()]
        public void GetUserInfoByCILTest()
        {
            string _CILServer = string.Empty; // TODO: Initialize to an appropriate value
            CILHelper target = new CILHelper(_CILServer); // TODO: Initialize to an appropriate value
            string cilname = string.Empty; // TODO: Initialize to an appropriate value
            C_evw_Employee expected = null; // TODO: Initialize to an appropriate value
            C_evw_Employee actual;
            actual = target.GetUserInfoByCIL(cilname);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetUserInfosByCILArray
        ///</summary>
        [TestMethod()]
        public void GetUserInfosByCILArrayTest()
        {
            string _CILServer = string.Empty; // TODO: Initialize to an appropriate value
            CILHelper target = new CILHelper(_CILServer); // TODO: Initialize to an appropriate value
            string[] cilnames = null; // TODO: Initialize to an appropriate value
            C_evw_Employee[] expected = null; // TODO: Initialize to an appropriate value
            C_evw_Employee[] actual;
            actual = target.GetUserInfosByCILArray(cilnames);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ValidationUser
        ///</summary>
        [TestMethod()]
        public void ValidationUserTest()
        {
            string _CILServer = string.Empty; // TODO: Initialize to an appropriate value
            CILHelper target = new CILHelper(_CILServer); // TODO: Initialize to an appropriate value
            string username = string.Empty; // TODO: Initialize to an appropriate value
            string pwd = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.ValidationUser(username, pwd);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
